package com.example.mapping.utils;

import java.io.Serializable;


/**
 * @author baoyoujia
 */
public class Tuple3<X, Y, Z> implements Serializable {

    private X one;
    private Y two;
    private Z three;

    public Tuple3() {
    }

    public Tuple3(X one, Y two, Z three) {
        this.one = one;
        this.two = two;
        this.three = three;
    }

    public static <X, Y, Z> Tuple3<X, Y, Z> of(X one, Y two, Z three) {
        return new Tuple3<>(one, two, three);
    }

    public X getOne() {
        return one;
    }

    public void setOne(X one) {
        this.one = one;
    }

    public Y getTwo() {
        return two;
    }

    public void setTwo(Y two) {
        this.two = two;
    }

    public Z getThree() {
        return three;
    }

    public void setThree(Z three) {
        this.three = three;
    }
}
